package com.xdtech.hotel.model;

import java.io.Serializable;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Lob;
import javax.persistence.Table;

import com.xdtech.core.model.BaseModel;

/**
 * 
 * @author max.zheng
 * @create 2015-04-04 11:42:14
 * @since 1.0
 * @see 
 */
@Entity
@Table(name="HOTEL_ROOM_CONFIG")
public class RoomConfig extends BaseModel implements Serializable{
	private static final long serialVersionUID = 1L;
	@Id
	@Column(name = "ID")
	@GeneratedValue(strategy = GenerationType.AUTO)
	private Long id;
	@Column(name="ROOM_TYPE")
	private String roomType;
	@Column(name="CONFIG_INFO")
	@Lob
	private String configInfo;
	
	@Column(name="CONFIG_XML")
	@Lob
	private String configXml;

	
	public RoomConfig() {
		super();
	}
	
	public RoomConfig(Long id, String roomType, String configInfo,
			String configXml) {
		super();
		this.id = id;
		this.roomType = roomType;
		this.configInfo = configInfo;
		this.configXml = configXml;
	}

	public void setId(Long id) {
		this.id = id;
	}
	public Long getId() {
		return id;
	}
	public void setRoomType(String roomType) {
		this.roomType = roomType;
	}
	public String getRoomType() {
		return roomType;
	}
	public void setConfigInfo(String configInfo) {
		this.configInfo = configInfo;
	}
	public String getConfigInfo() {
		return configInfo;
	}
	public String getConfigXml() {
		return configXml;
	}
	public void setConfigXml(String configXml) {
		this.configXml = configXml;
	}
	
	
}
